package com.zfc.freemyleft.freetrymyleftframe;

import android.app.Application;

import com.freemyleft.left.left_app.icon.FontLeftAppmodule;
import com.freemyleft.left.zapp.app.Left;
import com.freemyleft.left.zapp.net.interceptors.DebugInterceptor;
import com.joanzapata.iconify.fonts.FontAwesomeModule;
import com.zfc.jiaoyuexu.freetrymyleftframe.R;

import cn.jpush.android.api.JPushInterface;

/**
 * Created by FreeMyleft on 2017/11/29.
 */

public class ExampleApp extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        Left.init(this)
                .withIcon(new FontAwesomeModule())
                .withIcon(new FontLeftAppmodule())//自定义的图标module
                .withLoaderDelayed(1000)
                .withApiHost("http://www.jiaoyuxuevip.com")  //传入apiHost  127是本地地址
                .withInterceptor(new DebugInterceptor("index", R.raw.test))
                .withweChatAppId("")
                .withweChatSecret("")
                .configure();


        //开启极光推送
        JPushInterface.setDebugMode(true);
        JPushInterface.init(this);
    }
}
